Optimal. Leaf size=89 \[ \frac{(5 A+6 C) \sin (c+d x) \cos ^3(c+d x)}{24 d}+\frac{(5 A+6 C) \sin (c+d x) \cos (c+d x)}{16 d}+\frac{A \sin (c+d x) \cos ^5(c+d x)}{6 d}+\frac{1}{16} x (5 A+6 C) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0586294, antiderivative size = 89, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {4045, 2635, 8} \[ \frac{(5 A+6 C) \sin (c+d x) \cos ^3(c+d x)}{24 d}+\frac{(5 A+6 C) \sin (c+d x) \cos (c+d x)}{16 d}+\frac{A \sin (c+d x) \cos ^5(c+d x)}{6 d}+\frac{1}{16} x (5 A+6 C) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4045
Rule 2635
Rule 8
Rubi steps
\begin{align*} \int \cos ^6(c+d x) \left (A+C \sec ^2(c+d x)\right ) \, dx &=\frac{A \cos ^5(c+d x) \sin (c+d x)}{6 d}+\frac{1}{6} (5 A+6 C) \int \cos ^4(c+d x) \, dx\\ &=\frac{(5 A+6 C) \cos ^3(c+d x) \sin (c+d x)}{24 d}+\frac{A \cos ^5(c+d x) \sin (c+d x)}{6 d}+\frac{1}{8} (5 A+6 C) \int \cos ^2(c+d x) \, dx\\ &=\frac{(5 A+6 C) \cos (c+d x) \sin (c+d x)}{16 d}+\frac{(5 A+6 C) \cos ^3(c+d x) \sin (c+d x)}{24 d}+\frac{A \cos ^5(c+d x) \sin (c+d x)}{6 d}+\frac{1}{16} (5 A+6 C) \int 1 \, dx\\ &=\frac{1}{16} (5 A+6 C) x+\frac{(5 A+6 C) \cos (c+d x) \sin (c+d x)}{16 d}+\frac{(5 A+6 C) \cos ^3(c+d x) \sin (c+d x)}{24 d}+\frac{A \cos ^5(c+d x) \sin (c+d x)}{6 d}\\ \end{align*}
Mathematica [A] time = 0.103052, size = 68, normalized size = 0.76 \[ \frac{(45 A+48 C) \sin (2 (c+d x))+(9 A+6 C) \sin (4 (c+d x))+A \sin (6 (c+d x))+60 A c+60 A d x+72 c C+72 C d x}{192 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.056, size = 86, normalized size = 1. \begin{align*}{\frac{1}{d} \left ( A \left ({\frac{\sin \left ( dx+c \right ) }{6} \left ( \left ( \cos \left ( dx+c \right ) \right ) ^{5}+{\frac{5\, \left ( \cos \left ( dx+c \right ) \right ) ^{3}}{4}}+{\frac{15\,\cos \left ( dx+c \right ) }{8}} \right ) }+{\frac{5\,dx}{16}}+{\frac{5\,c}{16}} \right ) +C \left ({\frac{\sin \left ( dx+c \right ) }{4} \left ( \left ( \cos \left ( dx+c \right ) \right ) ^{3}+{\frac{3\,\cos \left ( dx+c \right ) }{2}} \right ) }+{\frac{3\,dx}{8}}+{\frac{3\,c}{8}} \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.40669, size = 139, normalized size = 1.56 \begin{align*} \frac{3 \,{\left (d x + c\right )}{\left (5 \, A + 6 \, C\right )} + \frac{3 \,{\left (5 \, A + 6 \, C\right )} \tan \left (d x + c\right )^{5} + 8 \,{\left (5 \, A + 6 \, C\right )} \tan \left (d x + c\right )^{3} + 3 \,{\left (11 \, A + 10 \, C\right )} \tan \left (d x + c\right )}{\tan \left (d x + c\right )^{6} + 3 \, \tan \left (d x + c\right )^{4} + 3 \, \tan \left (d x + c\right )^{2} + 1}}{48 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.495464, size = 167, normalized size = 1.88 \begin{align*} \frac{3 \,{\left (5 \, A + 6 \, C\right )} d x +{\left (8 \, A \cos \left (d x + c\right )^{5} + 2 \,{\left (5 \, A + 6 \, C\right )} \cos \left (d x + c\right )^{3} + 3 \,{\left (5 \, A + 6 \, C\right )} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{48 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.20468, size = 130, normalized size = 1.46 \begin{align*} \frac{3 \,{\left (d x + c\right )}{\left (5 \, A + 6 \, C\right )} + \frac{15 \, A \tan \left (d x + c\right )^{5} + 18 \, C \tan \left (d x + c\right )^{5} + 40 \, A \tan \left (d x + c\right )^{3} + 48 \, C \tan \left (d x + c\right )^{3} + 33 \, A \tan \left (d x + c\right ) + 30 \, C \tan \left (d x + c\right )}{{\left (\tan \left (d x + c\right )^{2} + 1\right )}^{3}}}{48 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]